<%@  language="VBSCRIPT" codepage="65001" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>.::E-Valuation System::.. </title>
    <link href="../../App_Themes/Default/Css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <!-- Calendar -->
    <link href="../../App_Themes/Default/Calendar/Calendar.css" rel="stylesheet" type="text/css" />

    <script language="JavaScript" src="../../App_Themes/Default/Calendar/calendar.js"
        type="text/javascript">
    </script>

    <!-- End Calendar -->
    <!-- Begin Tabs -->
    <link href="../../App_Themes/Default/Css/UITabPane/DefaultStylesheet.css" rel="stylesheet"
        type="text/css" />
    <link href="../../App_Themes/Default/Css/UITabSelector/DefaultStylesheet.css" rel="stylesheet"
        type="text/css" />
    <link href="../../App_Themes/Default/Css/UITabs/DefaultStylesheet.css" rel="stylesheet"
        type="text/css" />
    <!-- End Tabs -->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
    <center>
        <form name="aspnetForm" method="post" action="default.aspx" id="aspnetForm">
            <div>
                <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
                <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
                <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTk0Nzk5NjkzMA9kFgJmD2QWAgIDD2QWAgIBD2QWAgIFDw8WAh4HVmlzaWJsZWdkZGRVGnKR8bxcrODqnUDruUkg0p5CCg==" />
            </div>

            <script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
            </script>

            <div class="TMDT BorderRed">
                <div class="DefaultStyle BorderRed">
                    <div class="BannerTop BorderBlue">
                        <div class="TopSlogan">
                            Hệ Thống Đánh Giá Chất Lượng Doanh Nghiệp</div>
                    </div>
                    <div class="Banner BorderBlue">
                        <div class="BannerRight BorderBlue">
                        </div>
                    </div>
                    <div class="Navigator BorderBlue">
                        <div class="SearchForm BorderBlue">
                            <div class="SButton">
                                <div class="SButtonLayout">
                                    <a id="ctl00_navigator1_SearchControl1_lbSearch" href="javascript:__doPostBack('ctl00$navigator1$SearchControl1$lbSearch','')">
                                        Tìm kiếm </a>
                                </div>
                            </div>
                            <div class="RightBlock">
                                <input name="ctl00$navigator1$SearchControl1$txtSearch" type="text" id="ctl00_navigator1_SearchControl1_txtSearch" />
                            </div>
                            <div class="LanguageBar RightBlock">
                                <a id="ctl00_navigator1_lbLang_VN" href="javascript:__doPostBack('ctl00$navigator1$lbLang_VN','')">
                                    Việt nam</a> / <a id="ctl00_navigator1_lbLang_EN" href="javascript:__doPostBack('ctl00$navigator1$lbLang_EN','')">
                                        English</a>
                            </div>
                            <div class="IconHolder RightBlock BorderBlue">
                                <div class="bullet10x10">
                                </div>
                            </div>
                            <div class="IconHolder RightBlock BorderBlue">
                                <div class="bullet10x10">
                                </div>
                            </div>
                            <div class="IconHolder RightBlock BorderBlue">
                                <div class="bullet10x10">
                                </div>
                            </div>
                        </div>
                        <div class="ClearRight">
                        </div>
                    </div>
                    <div class="BodyBound BorderRed">
                        <div class="LeftSide LeftBlock BorderBlue">
                            <div class="UIBar">

                                <script src="../../App_Themes/MenuFunction.js" type="text/javascript">
                                </script>

                                <!--Quan tri cao cap -->
                                <!--Ket thuc Quan tri cao cap -->
                                <!--Quan tri doanh nghiep -->
                                <!--Ket thuc Quan tri doanh nghiep -->
                                <!--Nguoi dung doanh nghiep -->
                                <div id="ctl00_controlMenu1_userCompControlPanel">
                                    <div class="RedBar">
                                        <div class="BarLeft">
                                            <div class="BarRight">
                                                <div class="BarMid">
                                                    <div class="IconHolder LeftBlock">
                                                        <div class="redbullet10x10">
                                                            <span></span>
                                                        </div>
                                                    </div>
                                                    <label class="Label">
                                                        Người dùng DN</label>
                                                    <div class="ClearLeft">
                                                        <span></span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="MenuCompUserInput">
                                        <div class="BlueNormalBar">
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock">
                                                            <div class="bullet10x10">
                                                                <span></span>
                                                            </div>
                                                        </div>
                                                        <a href="javaScript:showHidden('subMenuCompUserInput');">Nhập điểm</a>
                                                        <div class="ClearLeft">
                                                            <span></span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="BlueNormalBar" id="subMenuCompUserInput" style="display: none;">
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock" style="margin-left: 10PX;">
                                                        </div>
                                                        <a href="insert_THIO_Wizard.aspx">T H I O</a><br />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock" style="margin-left: 10PX;">
                                                        </div>
                                                        <a href='nguoidungdangnhap.asp?companyId=40'>Nhập điểm</a><br />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock" style="margin-left: 10PX;">
                                                        </div>
                                                        <a href="product_ticket.aspx">Điểm sản phẩm</a><br />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock" style="margin-left: 10PX;">
                                                        </div>
                                                        <a href="ingredient_ticket.aspx">Điểm thành phần</a><br />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock" style="margin-left: 10PX;">
                                                        </div>
                                                        <a href="List_ticket.aspx">Danh sách</a><br />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="MenuCompUserOutput">
                                        <div class="BlueNormalBar">
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock">
                                                            <div class="bullet10x10">
                                                                <span></span>
                                                            </div>
                                                        </div>
                                                        <a href="javaScript:showHidden('subMenuCompUserOutput');">Dánh giá</a>
                                                        <div class="ClearLeft">
                                                            <span></span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="BlueNormalBar" id="subMenuCompUserOutput" style="display: none;">
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock" style="margin-left: 10PX;">
                                                        </div>
                                                        <a href="#">Nhận xét</a><br />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock" style="margin-left: 10PX;">
                                                        </div>
                                                        <a href="#">In ấn</a><br />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--Ket thuc Nguoi dung doanh nghiep -->
                                <div id="ctl00_controlMenu1_PublicArea">
                                    <div id="PublicMenu">
                                        <div class="BlueNormalBar">
                                            <div class="BarLeft">
                                                <div class="BarRight">
                                                    <div class="BarMid">
                                                        <div class="IconHolder LeftBlock">
                                                            <div class="bullet10x10">
                                                                <span></span>
                                                            </div>
                                                        </div>
                                                        <a id="ctl00_controlMenu1_btnBieuDo" href="javascript:__doPostBack('ctl00$controlMenu1$btnBieuDo','')">
                                                            Biểu đồ</a>
                                                        <div class="ClearLeft">
                                                            <span></span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!---
        <div class="BlueNormalBar">
            <div class="BarLeft">
                <div class="BarRight">
                    <div class="BarMid">
                        <div class="IconHolder LeftBlock">
                            <div class="bullet10x10">
                                <span></span>
                            </div>
                        </div>
                        <a href="../../logout.aspx" style="color:Red;">Đăng xuất</a>
                        <div class="ClearLeft">
                            <span></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="BlueNormalBar" id="subPublicMenu" style="display: none;">
            <div class="BarLeft">
                <div class="BarRight">
                    <div class="BarMid">
                        <div class="IconHolder LeftBlock" style="margin-left: 10PX;">
                        </div>
                        
                    </div>
                </div>
            </div>
        </div> -->
                                    </div>
                                </div>
                                <div class="LV2BlueBar">
                                    <div class="BarLeft">
                                        <div class="BarRight">
                                            <div class="BarMid">
                                                <div class="Label">
                                                    <a href="#">Thư mục cá nhân</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="Line_Bar">
                                    <div class="Icon LeftBlock Inbox16x16">
                                    </div>
                                    <div class="BarLeft">
                                        <div class="BarRight">
                                            <div class="BarMid">
                                                <a href="#">Trả lời mới [10]</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="ClearLeft">
                                        <span></span>
                                    </div>
                                </div>
                                <div class="Line_Bar">
                                    <div class="Icon LeftBlock Outbox16x16">
                                    </div>
                                    <div class="BarLeft">
                                        <div class="BarRight">
                                            <div class="BarMid">
                                                <a href="#">Đã hỏi [16]</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="ClearLeft">
                                        <span></span>
                                    </div>
                                </div>
                                <div class="Line_Bar">
                                    <div class="Icon LeftBlock Total16x16">
                                    </div>
                                    <div class="BarLeft">
                                        <div class="BarRight">
                                            <div class="BarMid">
                                                <a href="#">Trả lời cũ [4]</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="ClearLeft">
                                        <span></span>
                                    </div>
                                </div>
                                <div class="Line_Bar">
                                    <div class="Icon LeftBlock ChangePass16x16">
                                    </div>
                                    <div class="BarLeft">
                                        <div class="BarRight">
                                            <div class="BarMid">
                                                <a id="ctl00_UserInfoControl1_lnkbtnChangePass" href="javascript:__doPostBack('ctl00$UserInfoControl1$lnkbtnChangePass','')">
                                                    Đổi mật khẩu</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="ClearLeft">
                                        <span></span>
                                    </div>
                                </div>
                                <div class="Line_Bar">
                                    <div class="Icon LeftBlock Logout16x16">
                                    </div>
                                    <div class="BarLeft">
                                        <div class="BarRight">
                                            <div class="BarMid">
                                                <a href="../../logout.aspx" style="color: Red;">Đăng xuất</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="ClearLeft">
                                        <span></span>
                                    </div>
                                </div>
                                <div class="LV2BlueBar">
                                    <div class="BarLeft">
                                        <div class="BarRight">
                                            <div class="BarMid">
                                                <div class="Label">
                                                    <a href="#">usertd</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="LogInArea">
                                    Người dùng doanh nghiệp
                                    <div class="Field">
                                        <div class="logedUser" title="Đăng nhập, chọn hội đồng chấm điểm, chọn sản phẩm đã được chấm, nhập các phiếu điểm của các thành viên hội đồng, in các phiếu điểm trắng, phiếu điểm đã chấm.">
                                            Đăng nhập, chọn hội đồng chấm điểm, chọn sản phẩm đã được chấm, nhập các phiếu điểm
                                            của các thành viên hội đồng, in các phiếu điểm trắng, phiếu điểm đã chấm.
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="CenterPage BorderBlue">
                            <div class="Page BorderBlue">

                                <script language="javascript" type="text/javascript">
  	function kiemtra()
  {
  	if  ((document.getElementById("chonhd").value==0) || (document.getElementById("chonsp").value==0) ) {
	alert("Bạn phải chọn đầy đủ")
	return false;
  };
	//return false;
  }
  function submitForm() {
  values = document.getElementById("chucnang").value ;
   
  if(values == "0")  {
 
   document.getElementById("aspnetForm").action="DanhSachPhieuDiem.asp" ;
  } else if(values == "1"){
  document.getElementById("aspnetForm").action="DanhSachPhieuDiemSP.asp" ;
   
  } else if(values == "2"){
   document.getElementById("aspnetForm").action="DanhSachDiemThanhPhan.asp" ;
  }   else if(values == "-1"){
   alert("Chon mot !") ;
   return ;
  }
    document.getElementById("aspnetForm").submit() ;
  }
                                </script>

                                <!--#include file="connection.inc" -->
                                <%
                 if  (Session("ma_dn") = "") then
                 Session("ma_dn") = Request.QueryString("companyId")
                 end if
                                %>
                                <table border="0" align="center" width="450px">
                                    <tr>
                                        <td width="30%">
                                            &nbsp;</td>
                                        <td width="70%">
                                            <%rs.open "select * from doanhnghiep where madoanhnghiep ='"& Session("ma_dn")& "' and status =1",conn%>
                                            <input name="chondn" type="hidden" id="chondn" value='<%=Session("companyId")%>' />
                                            <%rs.close()%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Chọn hội đồng</td>
                                        <td>
                                            <select name="chonhd" id="chonhd" onchange="window.location='nguoidungdangnhap.asp?ma_hd='+this.value">
                                                <%rs.open "select * from hoidong where madoanhnghiep='"& Session("ma_dn")& " ' and status ='1'",conn%>
                                                <option value="0">---Chọn một hội đồng--</option>
                                                <% while not rs.eof %>
                                                <%if (cint(Request.QueryString("ma_hd"))=rs(0)) then %>
                                                <option value="<%=rs(0)%>" selected="selected">
                                                    <%=rs(1)%>
                                                </option>
                                                <%else%>
                                                <option value="<%=rs(0)%>">
                                                    <%=rs(1)%>
                                                </option>
                                                <%end if%>
                                                <%rs.movenext()%>
                                                <% wend %>
                                                <%rs.close()%>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Chọn sản phẩm</td>
                                        <td>
                                            <select name="chonsp" id="chonsp" onchange="window.location='nguoidungdangnhap.asp?ma_hd='+aspnetForm.chonhd.value+'&amp;ma_sp='+this.value;">
                                                <%if (Request.QueryString("ma_hd")>0)  then  
         
                                                %>
                                                <%rs.open "select * from sanpham where madoanhnghiep='"& Session("ma_dn")& "' and mahoidong='"& Request.QueryString("ma_hd")&"' and status='1'" ,conn%>
                                                <%else%>
                                                <%rs.open "select * from sanpham where madoanhnghiep='"& Session("ma_dn")&"' ",conn%>
                                                <%end if%>
                                                <option value="0">--Chọn một sản phẩm--</option>
                                                <% while not rs.eof %>
                                                <%if (cint(Request.QueryString("ma_sp"))=rs(0)) then 
         
        
                                                %>
                                                <option value="<%=rs(0)%>" selected="selected">
                                                    <%=rs(1)%>
                                                </option>
                                                <%else%>
                                                <option value="<%=rs(0)%>">
                                                    <%=rs(1)%>
                                                </option>
                                                <%end if%>
                                                <%rs.movenext()%>
                                                <% wend %>
                                                <%rs.close()
        Session("ma_hd") = Request.QueryString("ma_hd")  
        Session("ma_sp") =  Request.QueryString("ma_sp")
        Session("selectedTab") =   0 
                                                %>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Chọn chuc nang</td>
                                        <td>
                                            <select id="chucnang" name="chucnang" onchange="  javaScript:submitForm();">
                                                <option value="-1">Chon mot chuc nang</option>
                                                <option value="0">Nhập điểm THIO</option>
                                                <option value="1">Nhập điểm SP</option>
                                                <option value="2">Nhập điểm TP</option>
                                            </select>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            <input type="button" name="Submit" value="Nhập điểm" onclick=" javaScript:submitForm();" />
                                            <input type="reset" name="Submit2" value="Làm lại" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="ClearAll">
                        <span></span>
                    </div>
                    <div class="BannerTop">
                        <div class="Footer">
                            Nhóm 3 : C0411L .:. HDSE .:. FPT-APTECH .:. 2005 - 2007
                        </div>
                    </div>
                </div>
            </div>
            <div>
                <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBwKv7qvWBQKX6Y/QDAL1/OK9AwKr9fHxDAK49fHxDALquMuBBwL/+YDDDdZs8TKv32+WSPme2UtIuDXlPBW7" />
            </div>
        </form>
    </center>
</body>
</html>
